package Demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-15
 * Time: 22:30
 */
//继承和组合简单了解
public class Car {//组合
    private Tire tire;
    private  Engine  engine;
}

class Benz extends Car{//继承和组合
    Car car;
}
